package com.wdh.kjs;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;


/**
 * Created by codingWw on 2016/3/9.
 */
public class WelcomeActivity extends Activity {
    private SharedPreferences preferences;
    private SharedPreferences.Editor editor;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
                finish();
            }
        }, 1500);
//        preferences = getSharedPreferences("loginInfo", Context.MODE_PRIVATE);
//        editor = preferences.edit();
//
//        editor.putString("loginToken","");
//        editor.putString("userPhoneNumber", "");
//        editor.putString("username", "未登录");
//        editor.commit();

    }
    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}
